package com.ltmonitor.service;

import java.util.ArrayList;
import java.util.List;

import com.ltmonitor.entity.AlarmConfig;
import com.ltmonitor.entity.Department;

public interface IDepartmentService extends IBaseService<Long, Department> {

	Department fetchDepartment(long depId);

	void saveDepartment(Department dep)  throws Exception;
	List<Long> getDepIdList(long depId);
	
	List<Long> getParentDepIdList(long depId);
	List<Department> getDepartmentListByUserId(long userId);
	/**
	 * 从缓存中，根据部门Id列表批量获取部门信息
	 * @param depIdList
	 * @return
	 */
	ArrayList<Department> fetchDepartmentList(List<Long> depIdList);

}
